package exam.note.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/4/4 17:36
 * @since JDK 1.8
 */
@ApiModel("内容模型")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoteContent implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("主键id")
    private Integer id;

    @TableField("note_id")
    @ApiModelProperty("笔记id")
    private Integer noteId;

    @TableField("type_id")
    @ApiModelProperty("类型id")
    private Integer typeId;

    @TableField("title")
    @ApiModelProperty("标题")
    private String title;

    @TableField("content")
    @ApiModelProperty("内容")
    private String content;

    @TableField("createtime")
    @ApiModelProperty("创建时间")
    private Date createTime;
}
